//d定义一个接口，用于限制person对象的具体属性
export interface PersonInterface{
    id: number,
    name: string,
    age: number,
    x?: number //可选属性
}

//一个自定义类型
//export type PersonLists  = Array<PersonInterface>
export type PersonLists  = PersonInterface[]